import { baseRequest } from "@/api/http.js"

//user
export const doLogin = (code) => {
    return baseRequest("/wxapp/user/login2.html", {code:code})
}

export const signInit = () => {
    return baseRequest("/wxapp/power/signInit.html")
}
export const sign = () => {
    return baseRequest("/wxapp/power/sign.html")
}

export const getJujiList = (page) => {
    return baseRequest("/wxapp/movie/getJujiList.html", {page:page})
}

export const getJuchangList = (page) => {
    return baseRequest("/wxapp/movie/getJuchangList.html", {page:page})
}

export const getJujiDetail = (id) => {
    return baseRequest("/wxapp/movie/getJujiDetail.html", {id:id})
}

export const getAoteman = (page) => {
    return baseRequest("/wxapp/aoteman/getAoteman.html", {page:page})
}


export const getAotemanDetail = (id) => {
    return baseRequest("/wxapp/aoteman/getAotemanDetail.html", {id:id})
}

export const chouKa = (type) => {
    return baseRequest("/wxapp/Kapai/chouKaAotemanV2.html",{type:type})
}

//ukapai
export const choukaInit = () => {
    return baseRequest("/wxapp/Ukapai/choukaAotemanInitv2.html")
}

//卡牌
export const getKapaiList = (type) => {
    return baseRequest("/wxapp/Kapai/getKapaiAotemanListV2.html", {type:type})
}
export const getKapaiDetail = (id) => {
    return baseRequest("/wxapp/Kapai/getKapaiAotemanDetailV2.html", {id:id})
}

export const like = (id,type) => {
    return baseRequest("/wxapp/like/like.html", {id:id,type:type})
}

//弹幕
export const saveDanmu = (param) => {
    return baseRequest("/wxapp/KapaiDanmu/saveDanmuv2.html", param)
}

export const duihuan = (id) => {
    return baseRequest("/wxapp/Ukapai/duihuanv2.html",{id:id})
}

export const askCard = (id,code) => {
    return baseRequest("/wxapp/share/askCard.html",{id:id,code:code})
}

export const shareCard = (id,code) => {
    return baseRequest("/wxapp/share/shareCard.html",{id:id,code:code})
}

export const finishZhuli = (id) => {
    return baseRequest("/wxapp/share/finishZhuli.html",{id:id,version:'v2'})
}

export const getZhuliStatus = (id) => {
    return baseRequest("/wxapp/share/getZhuliStatus.html",{id:id})
}

export const shareZhuli = (id,code) => {
    return baseRequest("/wxapp/share/shareZhuli.html",{id:id,code:code})
}

export const getUkapaiList = (type) => {
    return baseRequest("/wxapp/Ukapai/getUkapaiAotemanListv2.html",{type:type})
}

export const getUkList = (page) => {
    return baseRequest("/wxapp/Ukapai/getUkList.html",{page:page})
}

export const getUkRecordList = (page) => {
    return baseRequest("/wxapp/Ukapai/getUkRecordList.html",{page:page})
}

export const getRank = () => {
    return baseRequest("/wxapp/Ukapai/getRank.html")
}

export const getRank2 = () => {
    return baseRequest("/wxapp/Ukapai/getRank2.html")
}
 
export const getZTheme = (id,page) => {
    return baseRequest("/wxapp/bizhi/getZTheme.html",{id:id,page:page})
}

export const getRecommendXcx = () => {
    return baseRequest("/wxapp/tool/getRecommendXcx.html")
}

export const saveShare = (param) => {
    return baseRequest("/wxapp/share/saveShare.html",param)
}

export const saveZhuli = (param) => {
    return baseRequest("/wxapp/share/saveZhuli.html",param)
}

export const getSignList = (page) => {
    return baseRequest("/wxapp/power/getSignList.html",{page:page})
}






